Skip to content

fix(llm): make Responses API cache hits visible; default example to auto#40

Merged
ignorejjj merged 2 commits into
mainfrom
fix/dogfood-cache-and-example-default
Jun 29, 2026
Merged

fix(llm): make Responses API cache hits visible; default example to auto#40
ignorejjj merged 2 commits into
mainfrom
fix/dogfood-cache-and-example-default

Conversation

@ignorejjj

Copy link
Copy Markdown
Member

Two small fixes surfaced while dogfooding algotune_knn end-to-end.

fix(llm): report Responses API cached_tokensopenai_responses parsed only input/output tokens, so gpt-5.x via the Responses API always logged cache_read=0 even when the prefix was cached. Now splits cached_tokens out of input_tokens (mirroring openai_compat), so token stats are honest and total_input_tokens isn't double-counted. Verified by unit-checking the parse; KV cache itself confirmed ~99% read-hit on the anthropic path.

docs(examples): default algotune_knn to autoreview hangs an unattended/headless first run waiting for input; auto is the right default for a copy-paste run.

openai_responses parsed only input/output tokens, so gpt-5.x via the
Responses API always logged cache_read=0 even when the prefix was cached.
Split cached_tokens out of input_tokens (mirroring openai_compat) so token
stats are honest and total_input_tokens isn't double-counted.
review mode hangs an unattended/headless run waiting for input; auto is the
right default for a copy-paste first run.
@ignorejjj ignorejjj merged commit 2f116ca into main Jun 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant